<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>iStud Главная страница</title>
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/style.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/facebox.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/dropdown.css" />
	<script type="text/javascript" src="<?php Yii::app()->request->baseUrl;?>/js/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="<?php Yii::app()->request->baseUrl;?>/js/facebox.js"></script>

    <script type="text/javascript">
		jQuery(document).ready(function($) {
			$('a[rel*=facebox]').facebox()
		})
    </script>
    <script type="text/javascript">
$(document).ready(function() {
var V = false;
    $('.SH').hide();
    $('.V').hover(function() {
    if(V == false){
        V = true;
        $(this).children('.SH').slideDown('slow');

    } else{
        $('.SH').slideUp('slow');
        V=false;
    }
    });
});
	
	</script>


</head>

<body>
<div id="MainContainer">
    <div id="Header">
    	<div id="Logotype">
			<a href="/" ><img src="<?php Yii::app()->request->baseUrl;?>/images/Logotype.png" alt="" style="border:none;" /></a>
        </div>
        <div id="HeadNav">
        	<ul>
            	<li><a href="#">Новости</a></li>
            	<li><a href="#">Помощь</a></li>
            	<li><a href="#">О проекте</a></li>
            	<li><a href="#">Реклама</a></li>
            	<li><a href="#">Форум</a></li>
            </ul>
        </div>

        <div class="Clear"></div>
        <div style="height:22px; max-height:22px;">
		<?php
			if (Yii::app()->user->isGuest)
			{
				echo '<a href="#InForm" class="Right" rel="facebox">Войти</a>';
			}
			else
			{
				echo '<a href="/user/userpage" class="Right" rel="">Моя страница</a>';
			}
		?>
        </div>
    </div>
    <div class="Clear"></div>
    <div id="Navigation">
        <!--<div id="First"></div>-->
            <ul class="dropdown">
                <li><a href="/order/getorder" class="NavA" id="First">ЗАКАЗАТЬ</a></li>
				<li>
					<?php
						//echo '<a href="#Find" rel="facebox" class="NavA">РљСѓРїРёС‚СЊ</a>';
						//$this->widget('application.components.FindWidget');
					?>
                    <a href="/work/list" class="NavA">КУПИТЬ</a></li>
				</li>
                <!--<li><a href="/work/list" class="NavA">РљРЈРџР�РўР¬</a>-->
                    <!--<ul id="SubList">
                        <li><a href="#">Р”РёРїР»РѕРјРЅСѓСЋ СЂР°Р±РѕС‚Сѓ</a></li>
                        <li><a href="#">РљСѓСЂСЃРѕРІСѓСЋ СЂР°Р±РѕС‚Сѓ</a></li>
                        <li><a href="#">Р”РёСЃСЃРµСЂС‚Р°С†РёСЋ</a></li>
                        <li ><a href="#" class="SubListEnd">РљРѕРЅС‚СЂРѕР»СЊРЅСѓСЋ СЂР°Р±РѕС‚Сѓ</a></li>
                    </ul>
                </li>-->
                <li>
                    <?php
                        echo '<a href="/order/find" class="NavA">ВЫПОЛНИТЬ</a>';
                       // $this->widget('application.components.FindWidget');
                    ?>
                </li>
                <li><a href="/sell/getsell" class="NavA">ПРОДАТЬ</a></li>
            </ul>
        <div id="Last"></div>

        	<form id="SearchForm" action="qwe.php">
            	<input type="text" class="Text" />
                <input type="submit" class="Ok" value=" " />
            </form>
        <div class="Clear"></div>
		<div style="height:22px; max-height:22px;">
    		<a href="/search/fastsearch" class="Right" >Расширеный поиск</a>
        </div>
        <div class="Right" style="font-size:11px;">
           <?php $this->widget('application.components.CountWidget') ?>
        </div>
    </div>

	<div>
		<?php $this->widget('application.components.LoginWidget'); ?>
		<?php $this->widget('application.components.RegistrationWidget'); ?>
    </div>

	<?php echo $content; ?>

    <div style="padding-bottom:80px;"></div>
    
    <div id="Footer">
    <div style="padding:0px 40px;">
    	<div style="width:33%; text-align:left; float:left;">Разработано в дизайн-мастерской "ЭОН" 
        </div>
    	<div style="width:33%; text-align:center; float:left;">
        	&copy; 2010, ООО "iStud"
        </div>
        <div style="width:33%; text-align:right; float:left;">
        	<img src="<?php Yii::app()->request->baseUrl;?>/images/Mail.png" width="24" height="17" alt="" align="middle" /><a href="#">support@iStud.ru</a>
        </div>
    </div>

    </div>
</div>

</body>
</html>
